package com.atu.poker.map;

import com.atu.poker.util.MapUtil;

public class CardMap {
	/**
	 * 游戏规则，所有人只跟庄家比大小 因为开牌只有两张牌，根据21点规则，需要分开判断 都是两张牌时，和已经有人摸牌时 以下大小均是根据public class
	 * Card { public static int[] cards = new int[]{ R.drawable.spade_a,
	 * R.drawable.heart_a, R.drawable.club_a, R.drawable.block_a,
	 * R.drawable.spade_2, R.drawable.heart_2, R.drawable.club_2,
	 * R.drawable.block_2, R.drawable.spade_3, R.drawable.heart_3,
	 * R.drawable.club_3, R.drawable.block_3, R.drawable.spade_4,
	 * R.drawable.heart_4, R.drawable.club_4, R.drawable.block_4,
	 * R.drawable.spade_5, R.drawable.heart_5, R.drawable.club_5,
	 * R.drawable.block_5, R.drawable.spade_6, R.drawable.heart_6,
	 * R.drawable.club_6, R.drawable.block_6, R.drawable.spade_7,
	 * R.drawable.heart_7, R.drawable.club_7, R.drawable.block_7,
	 * R.drawable.spade_8, R.drawable.heart_8, R.drawable.club_8,
	 * R.drawable.block_8, R.drawable.spade_9, R.drawable.heart_9,
	 * R.drawable.club_9, R.drawable.block_9, R.drawable.spade_10,
	 * R.drawable.heart_10, R.drawable.club_10, R.drawable.block_10,
	 * R.drawable.spade_j, R.drawable.heart_j, R.drawable.club_j,
	 * R.drawable.block_j, R.drawable.spade_q, R.drawable.heart_q,
	 * R.drawable.club_q, R.drawable.block_q, R.drawable.spade_k,
	 * R.drawable.heart_k, R.drawable.club_k, R.drawable.block_k,
	 * R.drawable.joker_heart,
	 * R.drawable.joker_spade,R.drawable.card_back,R.color.colorTransparent}; } 进行判断
	 */
	//两种情况,两种情况的区别只有 J Q K的值不一样
	//--判断开牌时所有玩家只有两张牌时的情况
	public static final MapUtil<String, Integer> DEALCARDMAP = new MapUtil<>();
	//--判断已经抓牌以后的情况
	public static final MapUtil<String, Integer> SIZECARDMAP = new MapUtil<>();
	static {
		DEALCARDMAP.map.put("0", 1);
		DEALCARDMAP.map.put("1", 1);
		DEALCARDMAP.map.put("2", 1);
		DEALCARDMAP.map.put("3", 1);
		DEALCARDMAP.map.put("4", 2);
		DEALCARDMAP.map.put("5", 2);
		DEALCARDMAP.map.put("6", 2);
		DEALCARDMAP.map.put("7", 2);
		DEALCARDMAP.map.put("8", 3);
		DEALCARDMAP.map.put("9", 3);
		DEALCARDMAP.map.put("10",3);
		DEALCARDMAP.map.put("11", 3);
		DEALCARDMAP.map.put("12", 4);
		DEALCARDMAP.map.put("13", 4);
		DEALCARDMAP.map.put("14", 4);
		DEALCARDMAP.map.put("15", 4);
		DEALCARDMAP.map.put("16", 5);
		DEALCARDMAP.map.put("17", 5);
		DEALCARDMAP.map.put("18", 5);
		DEALCARDMAP.map.put("19", 5);
		DEALCARDMAP.map.put("20", 6);
		DEALCARDMAP.map.put("21", 6);
		DEALCARDMAP.map.put("22", 6);
		DEALCARDMAP.map.put("23", 6);
		DEALCARDMAP.map.put("24", 7);
		DEALCARDMAP.map.put("25", 7);
		DEALCARDMAP.map.put("26", 7);
		DEALCARDMAP.map.put("27", 7);
		DEALCARDMAP.map.put("28", 8);
		DEALCARDMAP.map.put("29", 8);
		DEALCARDMAP.map.put("30", 8);
		DEALCARDMAP.map.put("31", 8);
		DEALCARDMAP.map.put("32",9);
		DEALCARDMAP.map.put("33", 9);
		DEALCARDMAP.map.put("34", 9);
		DEALCARDMAP.map.put("35", 9);
		DEALCARDMAP.map.put("36", 10);
		DEALCARDMAP.map.put("37", 10);
		DEALCARDMAP.map.put("38", 10);
		DEALCARDMAP.map.put("39", 10);
		DEALCARDMAP.map.put("40", 11);
		DEALCARDMAP.map.put("41", 11);
		DEALCARDMAP.map.put("42", 11);
		DEALCARDMAP.map.put("43", 11);
		DEALCARDMAP.map.put("44", 12);
		DEALCARDMAP.map.put("45", 12);
		DEALCARDMAP.map.put("46", 12);
		DEALCARDMAP.map.put("47", 12);
		DEALCARDMAP.map.put("48", 13);
		DEALCARDMAP.map.put("49", 13);
		DEALCARDMAP.map.put("50", 13);
		DEALCARDMAP.map.put("51", 13);

		
		SIZECARDMAP.map.put("0", 1);
		SIZECARDMAP.map.put("1", 1);
		SIZECARDMAP.map.put("2", 1);
		SIZECARDMAP.map.put("3", 1);
		SIZECARDMAP.map.put("4", 2);
		SIZECARDMAP.map.put("5", 2);
		SIZECARDMAP.map.put("6", 2);
		SIZECARDMAP.map.put("7", 2);
		SIZECARDMAP.map.put("8", 3);
		SIZECARDMAP.map.put("9", 3);
		SIZECARDMAP.map.put("10",3);
		SIZECARDMAP.map.put("11",3);
		SIZECARDMAP.map.put("12", 4);
		SIZECARDMAP.map.put("13", 4);
		SIZECARDMAP.map.put("14", 4);
		SIZECARDMAP.map.put("15", 4);
		SIZECARDMAP.map.put("16", 5);
		SIZECARDMAP.map.put("17", 5);
		SIZECARDMAP.map.put("18", 5);
		SIZECARDMAP.map.put("19", 5);
		SIZECARDMAP.map.put("20", 6);
		SIZECARDMAP.map.put("21", 6);
		SIZECARDMAP.map.put("22", 6);
		SIZECARDMAP.map.put("23", 6);
		SIZECARDMAP.map.put("24", 7);
		SIZECARDMAP.map.put("25", 7);
		SIZECARDMAP.map.put("26", 7);
		SIZECARDMAP.map.put("27", 7);
		SIZECARDMAP.map.put("28", 8);
		SIZECARDMAP.map.put("29", 8);
		SIZECARDMAP.map.put("30", 8);
		SIZECARDMAP.map.put("31", 8);
		SIZECARDMAP.map.put("32", 9);
		SIZECARDMAP.map.put("33", 9);
		SIZECARDMAP.map.put("34", 9);
		SIZECARDMAP.map.put("35", 9);
		SIZECARDMAP.map.put("36", 10);
		SIZECARDMAP.map.put("37", 10);
		SIZECARDMAP.map.put("38", 10);
		SIZECARDMAP.map.put("39", 10);
		SIZECARDMAP.map.put("40", 10);
		SIZECARDMAP.map.put("41", 10);
		SIZECARDMAP.map.put("42", 10);
		SIZECARDMAP.map.put("43", 10);
		SIZECARDMAP.map.put("44", 10);
		SIZECARDMAP.map.put("45", 10);
		SIZECARDMAP.map.put("46", 10);
		SIZECARDMAP.map.put("47", 10);
		SIZECARDMAP.map.put("48", 10);
		SIZECARDMAP.map.put("49", 10);
		SIZECARDMAP.map.put("50", 10);
		SIZECARDMAP.map.put("51", 10);
	}
}
